﻿@model IEnumerable<SalesPortal.Web.Models.ProjectBlock>

<table class="table">
    <tr>
        <th class="col-md-1">
            @Html.DisplayNameFor(model => model.Project.Name)
        </th>
        <th class="col-md-1">
            @Html.DisplayNameFor(model => model.BlockNo)
        </th>
        <th class="col-md-1 nowrap">
            @Html.DisplayNameFor(model => model.DoorPlateBlockNo)
        </th>

        <th></th>
    </tr>

    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.Project.Name)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.BlockNo)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.DoorPlateBlockNo)
            </td>

            <td>
                @Html.ActionLink("Edit", "Edit", new { id = item.Id }) |
                @Html.ActionLink("Details", "Details", new { id = item.Id }) |
                @Html.ActionLink("Delete", "Delete", new { id = item.Id })
            </td>
        </tr>
    }

</table>